package com.itbaizhan.mapper;

import com.itbaizhan.pojo.Teacher;

import java.util.List;

public interface TeacherMapper {
    //多对多查询  老师与班级  有一个中间表classes_teacher关联老师表与班级表
    /*select * from teacher
    * left join classes_teacher on teacher.tid = classes_teacher.tid
    * left join classes on classes.cid = classes_teacher.cid */
    List<Teacher> findAll();
}
